import request from '@/utils/request'
export function listAllExpert(query) {
  return request({
    url: '/biz/bizExpert/listAll',
    method: 'get',
    params: query
  })
}
// 查询专家列表
export function listBizExpert(query) {
  return request({
    url: '/biz/bizExpert/list',
    method: 'get',
    params: query
  })
}

// 查询专家详细
export function getBizExpert(id) {
  return request({
    url: '/biz/bizExpert/' + id,
    method: 'get'
  })
}

// 新增专家
export function addBizExpert(data) {
  return request({
    url: '/biz/bizExpert',
    method: 'post',
    data: data
  })
}

// 修改专家
export function updateBizExpert(data) {
  return request({
    url: '/biz/bizExpert',
    method: 'put',
    data: data
  })
}

// 删除专家
export function delBizExpert(id) {
  return request({
    url: '/biz/bizExpert/' + id,
    method: 'delete'
  })
}
